Inheritance diagram for Exponent::GUI::Fonts::CFont:

Definition at line 43 of file CFont.hpp.
| Exponent::GUI::Fonts::CFont::CFont | ( | const CString & | fontname = "Arial", |
|
| const unsigned long | height = 10 | |||
| ) |
Construction
| fontname | The natural name of the font | |
| height | The height of the font |
| Exponent::GUI::Fonts::CFont::CFont | ( | const CFont & | font | ) |
Copy Construction
| font | The font to copy |
| virtual Exponent::GUI::Fonts::CFont::~CFont | ( | ) | [virtual] |
Destruction
| static void Exponent::GUI::Fonts::CFont::createDefaultFont | ( | ) | [static] |
Create the defalt font
| static void Exponent::GUI::Fonts::CFont::destroyDefaultFont | ( | ) | [static] |
Destroy the default font
| HFONT Exponent::GUI::Fonts::CFont::getFont | ( | ) | const [inline] |
Get hte handle to the font
| HFONT | The windows font handle |
Definition at line 124 of file CFont.hpp.
References m_fontHandle.
| const CString& Exponent::GUI::Fonts::CFont::getFontName | ( | ) | const [inline] |
Get the font name
| const | CString& The name of the font |
Definition at line 149 of file CFont.hpp.
References m_fontName.
| long Exponent::GUI::Fonts::CFont::getFontSize | ( | ) | const |
Get the font size
| long | The font height |
| static long Exponent::GUI::Fonts::CFont::getFontSizeFromPointSize | ( | const long | pointSize | ) | [static] |
Compute the size of a font given the point size
| pointSize | The point size of a font |
| long Exponent::GUI::Fonts::CFont::getHeight | ( | ) | const |
Get the font height
| long | The font height |
| static long Exponent::GUI::Fonts::CFont::getStringLength | ( | const CString & | string, | |
| void * | drawContext = NULL | |||
| ) | [static] |
Get the length of a string in pixels
| string | The string to comppute | |
| drawContext | The drawContext, only needed for windows, on mac can be null |
| long | The length of the string |
| long Exponent::GUI::Fonts::CFont::getWidth | ( | ) | const |
Get the font width
| long | The font width |
| void Exponent::GUI::Fonts::CFont::loadFont | ( | ) | [protected] |
Load the font
Assignment operator
| font | The font to copy |
| void Exponent::GUI::Fonts::CFont::setFont | ( | const CString & | fontName, | |
| const long | height, | |||
| const bool | italic = false, |
|||
| const bool | underline = false, |
|||
| const bool | strike = false, |
|||
| const bool | bold = false | |||
| ) |
Set the font
| fontName | The name of the font | |
| height | The height of the font | |
| italic | True if you want to draw in italic, false otherwise | |
| underline | True if you want to underline the font, false otherwise | |
| strike | True if you want to strike through the text, false otherwise | |
| bold | True if you want a bold variant, false otherwise |
| void Exponent::GUI::Fonts::CFont::setFont | ( | const CFontReference & | font | ) |
Set the font
| font | The font to copy |
| void Exponent::GUI::Fonts::CFont::setFontName | ( | const CString & | fontname | ) |
SEt the filename (loads the font)
| fontname | THe name of the font |
| void Exponent::GUI::Fonts::CFont::setHeight | ( | const unsigned long | height | ) |
Set the height
| height | The height of the font |
| void Exponent::GUI::Fonts::CFont::unloadFont | ( | ) | [protected] |
Unload the font
HFONT Exponent::GUI::Fonts::CFont::m_fontHandle [protected] |
CString Exponent::GUI::Fonts::CFont::m_fontName [protected] |
long Exponent::GUI::Fonts::CFont::m_height [protected] |
LOGFONT Exponent::GUI::Fonts::CFont::m_logFont [protected] |